Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for C99; Add tests #513

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Fix for C99; Add tests #513

merged 2 commits into from
Sep 5, 2024

Conversation

justsmth
Copy link
Contributor

@justsmth justsmth commented Sep 4, 2024

Issue

On macos, the collect_build_src.sh was not identifying refcount_lock.c as a source file b/c our automation performs the final build using the (default) C11 standard. However, refcount_lock.c is still needed for C99 builds, but it was not listed.

Description of changes:

  • Updated collect_build_src.sh so that it will always include both refcount_lock.c and refcount_c11.c (although only one of these will actually be useful to any specific build).
  • Added CI testing for popular platforms to verify that setting AWS_LC_SYS_C_STD to either 99 or 11 results in a successful build.
  • Update the cc_builder source listing so that refcount_lock.c is included.

Testing:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@justsmth justsmth requested a review from a team as a code owner September 4, 2024 12:04
@codecov-commenter
Copy link

codecov-commenter commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.52%. Comparing base (c358484) to head (9255fe2).
Report is 78 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #513      +/-   ##
==========================================
- Coverage   95.80%   92.52%   -3.28%     
==========================================
  Files          61       67       +6     
  Lines        8143     9277    +1134     
  Branches        0     9277    +9277     
==========================================
+ Hits         7801     8584     +783     
- Misses        342      422      +80     
- Partials        0      271     +271     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justsmth justsmth merged commit 5e84fce into aws:main Sep 5, 2024
199 of 206 checks passed
@justsmth justsmth deleted the testing-c-std branch September 5, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants